package pl.kaczanowscy.tomek.ipdl.test.dataproviders;

import org.testng.annotations.DataProvider;

import pl.kaczanowscy.tomek.ipdl.enums.Move;

public class MovesProvider {

	@DataProvider(name = "randomMoves")
	public static Object[][] getRandomMoves() {
		Object[][] providedData = new Object[20][];
		for (int i = 0; i < 20; i++) {
			providedData[i] = (Math.random() > 0.5) ? new Object[] { Move.COOPERATION }
					: new Object[] { Move.DEFECTION };
		}
		return providedData;
	}
}
